package com.ruoyi.exam.domain.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 答题，记录用户的试卷答题情况对象 t_task_exam_paper_answer
 * 
 * @author ruoyi
 * @date 2024-12-19
 */
public class TTaskExamPaperAnswer extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键，答题记录ID */
    private Long id;

    /** 试卷名称 */
    @Excel(name = "试卷名称")
    private String paperName;

    /** 考试分数 */
    @Excel(name = "考试分数")
    private Float userScore;

    /** 试卷分数 */
    @Excel(name = "试卷分数")
    private Float paperScore;

    /** 答对题目数量 */
    @Excel(name = "答对题目数量")
    private Long questionCorrect;

    /** 总题目数量 */
    @Excel(name = "总题目数量")
    private Long questionCount;

    /** 耗时，单位秒 */
    @Excel(name = "耗时，单位秒")
    private Long doTime;

    /** 答题试卷内容 */
    @Excel(name = "答题试卷内容")
    private String paperAnswer;
    /** 积分 */
    @Excel(name = "积分")
    private Double points;

    /** 是否删除(0未删除 1已删除) */
    private Integer deleted;

    private Long tTaskExeId; // t_task_exe的主键ID

    public Long gettTaskExeId() {
        return tTaskExeId;
    }

    public void settTaskExeId(Long tTaskExeId) {
        this.tTaskExeId = tTaskExeId;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setPaperName(String paperName) {
        this.paperName = paperName;
    }

    public String getPaperName() {
        return paperName;
    }

    public void setUserScore(Float userScore) {
        this.userScore = userScore;
    }

    public Float getUserScore() {
        return userScore;
    }

    public void setPaperScore(Float paperScore) {
        this.paperScore = paperScore;
    }

    public Float getPaperScore() {
        return paperScore;
    }

    public void setQuestionCorrect(Long questionCorrect) {
        this.questionCorrect = questionCorrect;
    }

    public Long getQuestionCorrect() {
        return questionCorrect;
    }

    public void setQuestionCount(Long questionCount) {
        this.questionCount = questionCount;
    }

    public Long getQuestionCount() {
        return questionCount;
    }

    public void setDoTime(Long doTime) {
        this.doTime = doTime;
    }

    public Long getDoTime() {
        return doTime;
    }

    public void setPaperAnswer(String paperAnswer) {
        this.paperAnswer = paperAnswer;
    }

    public String getPaperAnswer() {
        return paperAnswer;
    }

    public Double getPoints() {
        return points;
    }

    public void setPoints(Double points) {
        this.points = points;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("paperName", getPaperName())
                .append("userScore", getUserScore())
                .append("paperScore", getPaperScore())
                .append("questionCorrect", getQuestionCorrect())
                .append("questionCount", getQuestionCount())
                .append("doTime", getDoTime())
                .append("paperAnswer", getPaperAnswer())
                .append("points", getPoints())
                .append("deleted", getDeleted())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
